﻿using Newtonsoft.Json;

namespace KL.Standard.Model.ViewModels.Queue
{
    /// <summary>
    /// 消息实体类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class MQueueItem<T>
    {
        /// <summary>
        /// 操作类型
        /// </summary>
        public string opeType { set; get; }
        /// <summary>
        /// 同步的模块
        /// </summary>
        public string synModule { set; get; }
        /// <summary>
        /// 数据实体
        /// </summary>
        public T data { set; get; }

        public override string ToString()
        {
            return JsonConvert.SerializeObject(this);
        }
    }
}